BEGIN {
	median = 0;
	average = 0;
	count = 0;
	getline;
	sup = $4;
	inf = $4;

	if ($1 == name && $2 == cpus) {
		count++;
		average += $4;
	}
}

{
	if ($1 == name && $2 == cpus) {
		count++;
		average += $4;
		if ($4 < inf) {
			inf = $4;
		}
		if ($4 > sup) {
			sup = $4;
		}
	}
}

END {
	printf("%d %f %f %f\n", cpus, (average/count), inf, sup);
}
